package com.jokelandave.sportzbetz.client.presenters;

import com.google.api.gwt.services.plus.shared.model.Person;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;

public class ProfilePresenter implements Presenter {

	public interface IProfileView
	{
		HasText getNFLCredLabel();
		HasText getNBACredLabel();
		HasText getNHLCredLabel();
		HasText getMLBCredLabel();
		HasText getTotalCredLabel();
		Image getProfileImage();
		HasText getNameLabel();
		
		Widget asWidget();
	}
	
	EventBus eventBus;
	IProfileView view;
	Person currentlyLoggedInUser;
	
	public ProfilePresenter(Person currentlyLoggedInUser, EventBus eventBus, IProfileView view)
	{
		this.view = view;
		this.eventBus = eventBus;
		this.currentlyLoggedInUser = currentlyLoggedInUser;
	}
	
	private void bind()
	{
		
	}
	
	private void loadUserProfile()
	{
		
	}
	
	@Override
	public void go(HasWidgets container) 
	{
		bind();
		container.clear();
		container.add(view.asWidget());
	}

}
